﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace pinche_api.Data {
    /// <summary>
    /// 模型基类
    /// </summary>
    public class BaseModel {
        public BaseModel() {
            id=Guid.NewGuid().ToString();
        }
        /// <summary>
        /// 设置自增主键
        /// </summary>
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string id { get; set; }
    }
}
